<html>
<head><meta charset="utf-8"><title>Inlining · t-compiler/wg-llvm · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/index.html">t-compiler/wg-llvm</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/Inlining.html">Inlining</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="178046467"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/Inlining/near/178046467" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Matthew Jasper <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/Inlining.html#178046467">(Oct 13 2019 at 17:18)</a>:</h4>
<p>I've opened <a href="https://github.com/rust-lang/rust/issues/65385" target="_blank" title="https://github.com/rust-lang/rust/issues/65385">#65385</a> which tries to avoid some of the perf regression of <a href="https://github.com/rust-lang/rust/issues/61430" target="_blank" title="https://github.com/rust-lang/rust/issues/61430">#61430</a>. Some of which was caused by llvm inlining a function (marked <code>#[inline]</code>) beyond the point where it made any sense. Does anyone have any ideas on how to avoid this sort of issue, or how I can debug llvm's inlining decisions?</p>



<a name="178089830"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187780-t-compiler/wg-llvm/topic/Inlining/near/178089830" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> gnzlbg <a href="https://rust-lang.github.io/zulip_archive/stream/187780-t-compiler/wg-llvm/topic/Inlining.html#178089830">(Oct 14 2019 at 10:08)</a>:</h4>
<p>Is the perf regression removed with <code>lto=fat</code> and that PR? In that case, <code>#[inline]</code> should have very little effect.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>